﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BusinessLayer;

namespace PresentationLayer
{
    public partial class CriaOficina : Form
    {
        public CriaOficina()
        {
            InitializeComponent();
        }

        private void Criar_Click(object sender, EventArgs e)
        {
            this.textNIF.SelectAll();
            this.textNome.SelectAll();
            this.textMorada.SelectAll();
            this.textFax.SelectAll();
            this.textTelefone.SelectAll();
            if (OficinaActions.CriarOficina(this.textNIF.SelectedText, this.textNome.SelectedText, this.textFax.SelectedText,
                this.textTelefone.SelectedText, this.textMorada.SelectedText))
                this.Close();
            else
            {
                /*Lançar caixa de Expeção*/
            }
        }
    }
}
